<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0,user-scalable=no" />
    <meta name="csrf-token" content="{{ csrf_token() }}">
    <title>{{ $enroll->semester }}报名成功</title>
    <link rel="stylesheet" href="{{ URL::asset('/') }}mastedu/enroll-success/css/xiaosi.css">
    <link href="{{ URL::asset('/') }}mastedu/enroll-success/css/weui.min.css" rel="stylesheet" />
</head>
<body>
<div class="cg-main">
    <!--头部-->
    <header class="title-box">
        <img class="enroll-logo" style="margin-left:.15rem;padding-top:.15rem;" src="{{ URL::asset('/') }}mastedu/enroll-success/pic/logo.png" alt="">
        <img class="enroll-title" src="{{ URL::asset('/') }}mastedu/enroll-success/pic/enroll-title.png" alt="">
        <img class="book3-rtop" src="{{ URL::asset('/') }}mastedu/enroll-success/pic/book3-rtop.png" alt="">
        <!--title-->
        <div class="success-subtitle">
            <img src="{{ URL::asset('/') }}mastedu/enroll-success/pic/success-subtitle.png" alt="">
        </div>
    </header>

    <div class="cg-box">

        <ul class="cg-ul">
            <li>
                <h4 class="cg-title-box clear">
                    <img class="logo-yuan" src="{{ URL::asset('/') }}mastedu/enroll-success/pic/logo-yuan.png" alt="">
                    <span class="cg-title">
                        @if($enroll->grade == 2)
                            2018二年级暑假班
                        @elseif($enroll->grade == 3)
                            2018三年级暑假班
                        @endif
                        </span>
                </h4>
            </li>
            <li class="clear">
                <div class="cg-left color-red">学生姓名</div>
                <div class="cg-right color-grey">{{ $enroll->student_name }}</div>
            </li>
            <li class="clear">
                <div class="cg-left color-black">购买科目</div>
                <div class="cg-right color-green">{{ $enroll->subject_s }}</div>
            </li>
            <li class="clear">
                <div class="cg-left color-black">所选校区</div>
                <div class="cg-right color-green">{!! $enroll->address !!}</div>
            </li>
            <li class="clear">
                <div class="cg-left color-black">所选期数</div>
                <div class="cg-right color-green">{{$enroll->semester}}</div>
            </li>
        </ul>
        <div class="border-dash"></div>
        <div class="cg-code-box">
            <img class="cg-code" src="{{ URL::asset('/') }}mastedu/enroll-success/pic/xiaoshengchu.jpg" alt="">
            <div class="cg-code-tip">
                长按识别二维码
                <br>
                了解更多暑假课程内容
            </div>
        </div>
    </div>
    <p>*本次报名为预报名，请保持电话畅通，注意接听老师来电，准时参加入班测，是否报名成功以校区前台入班为准！</p>
</div>

<script src="{{ URL::asset('/') }}mastedu/js/jquery-3.1.1.min.js"></script>
<script src="{{ URL::asset('/') }}mastedu/js/font.js"></script>
<script src="{{ URL::asset('/') }}mastedu/js/publib.js"></script>
<script src="{{ URL::asset('/') }}mastedu/js/jweixin-1.2.0.js"></script>

<script>
    $(function () {
        //------------微信js------------
        wx.config({
            debug: false,
            appId: "{{ $jssdk['appId'] }}",
            timestamp: "{{ $jssdk['timestamp'] }}",
            nonceStr: "{{ $jssdk['nonceStr'] }}",
            signature: "{{ $jssdk['signature'] }}",
            jsApiList: ['onMenuShareTimeline','onMenuShareAppMessage']
        });

        var shareImg = '{{ URL::asset('/') }}mastedu/share.jpg';
        var shareLink = '{{ $shareLink }}';
        var shareDesc = '马思特暑假班开课了';
        var shareTitle = '马思特暑假班班';

        //分享朋友圈
        wx.ready(function () {
            wx.onMenuShareTimeline({
                title: shareTitle,
                link: shareLink,
                imgUrl: shareImg,
                success: function () {
                },
                cancel: function () {
                }
            });

            //分享给朋友
            wx.onMenuShareAppMessage({
                title: shareTitle,
                desc: shareDesc,
                link: shareLink,
                imgUrl: shareImg,
                type: 'link',
                dataUrl: '',
                success: function () {
                },
                cancel: function () {
                }
            });
        });
    })

</script>

</body>
</html>

